import { BoticordFactory } from '@boticord/boticord-factory'
import { AppModule } from './app.module'
import { FastifyAdapter } from '@nestjs/platform-fastify'

async function bootstrap() {
  const { start } = await BoticordFactory.create(
    AppModule,
    'CDN',
    'Content Delivery Network service',
    '/cdn',
    new FastifyAdapter(),
  )

  await start()
}

bootstrap()
